From 8c2f7dc867333a65239d4284b5c2e10c77f6bf3d Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Thu, 14 Aug 2025 13:27:53 -0700 Subject: [PATCH] coova-chilli: fix compilation with GCC15 No idea how this even worked. cmdsock never got closed. Signed-off-by: Rosen Penev --- net/coova-chilli/Makefile | 2 +- net/coova-chilli/patches/040-gcc15.patch | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 net/coova-chilli/patches/040-gcc15.patch diff --git a/net/coova-chilli/Makefile b/net/coova-chilli/Makefile index b1a8f38d2f..950dd7db9e 100644 --- a/net/coova-chilli/Makefile +++ b/net/coova-chilli/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=coova-chilli PKG_VERSION:=1.6 -PKG_RELEASE:=12 +PKG_RELEASE:=13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/coova/coova-chilli/tar.gz/$(PKG_VERSION)? diff --git a/net/coova-chilli/patches/040-gcc15.patch b/net/coova-chilli/patches/040-gcc15.patch new file mode 100644 index 0000000000..60d9b67cc8 --- /dev/null +++ b/net/coova-chilli/patches/040-gcc15.patch @@ -0,0 +1,22 @@ +--- a/src/chilli.c ++++ b/src/chilli.c +@@ -7867,7 +7867,7 @@ int chilli_main(int argc, char **argv) { + */ + + #ifdef ENABLE_CHILLIQUERY +- cmdsock_shutdown(); ++ cmdsock_shutdown(cmdsock); + #endif + + #ifdef ENABLE_CHILLIREDIR +--- a/src/chilli.h ++++ b/src/chilli.h +@@ -266,7 +266,7 @@ int cmdsock_init(void); + + int cmdsock_port_init(void); + +-void cmdsock_shutdown(); ++void cmdsock_shutdown(int s); + + time_t mainclock_tick(void); + time_t mainclock_now(void); -- 2.30.2